package com.mattmckay.server;

import static org.junit.Assert.*;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;

public class ProcessPDFTest {

	@Test
	public void TestProcessPDFTest() throws IOException {
		byte[] image = null;
		try{
		InputStream inputstream = new FileInputStream("test.pdf");
		image = ProcessPDF.ConvertPDFtoPNG(inputstream);
		}catch(Exception ex){
			System.out.println("Problems with PDFtoPNGconversion");
		}
		assertArrayEquals(Convert.FileToByteArray("test.png"), image);
	}

}
